package com.open.capacity.finance.dao;

import com.open.capacity.finance.entity.Pz;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 凭证
 *
 * @author
 * @email
 * @date 2020-06-05 17:40:41
 */
@Mapper
public interface PzDao {

    Pz findById(String id);

    List<Pz> findByIds(@Param("ids") List<String> ids);
    Pz findPre(@Param("companyId") String companyId, @Param("ztId") String ztId, @Param("kjnd") Integer kjnd, @Param("kjqj") Integer kjqj, @Param("pzlxCode") String pzlxCode, @Param("pzh") String pzh);

    Pz findNext(@Param("companyId") String companyId, @Param("ztId") String ztId, @Param("kjnd") Integer kjnd, @Param("kjqj") Integer kjqj, @Param("pzlxCode") String pzlxCode, @Param("pzh") String pzh);

    Pz findAll(Map<String, Object> params);
    List<Pz> findAll1(Map<String, Object> params);

    List<Pz> findAll2(Map<String, Object> params);

    List<Pz> findAll_simple(Map<String, Object> params);

    List<Pz> findAll_simple2(Map<String, Object> params);

    int count(Map<String, Object> params);

}
